home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / MultiSession 1.04 Source / Core 27⁄June⁄1993 / CTextEdit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-06  |  1.1 KB  |  45 lines  |  [TEXT/KAHL]

  1. /* CTextEdit.h */
  2.  
  3. #pragma once
  4.  
  5. #include "CViewRect.h"
  6.  
  7. class CScrap;
  8. class CArray;
  9. class CEnclosure;
  10.  
  11. #define SelectText (True)
  12. #define DontSelectText (False)
  13.  
  14. struct    CTextEdit    :    CViewRect
  15.     {
  16.         TEHandle                    TextBox;
  17.         static CArray*        ListOfTextEdits;
  18.         static CTextEdit*    CurrentTextEdit;
  19.         short                            PointSize;
  20.         short                            FontID;
  21.         Handle                        UndoText;
  22.         short                            UndoOperation;
  23.         short                            UndoCursorStart;
  24.         short                            UndoCursorEnd;
  25.         EXECUTE(MyBoolean Initialized;)
  26.  
  27.         /* */            CTextEdit();
  28.         /* */            ~CTextEdit();
  29.         void            ITextEdit(LongPoint TheStart, LongPoint TheExtent, Handle DefaultText,
  30.                                 MyBoolean Selected, short TheFontID, short ThePointSize,
  31.                                 CWindow* TheWindow, CEnclosure* TheEnclosure);
  32.         void            DoMouseDown(MyEventRec Event);
  33.         MyBoolean    DoKeyDown(MyEventRec Event);
  34.         void            DoUpdate(void);
  35.         void            DoEnable(void);
  36.         void            DoDisable(void);
  37.         MyBoolean    DoMenuCommand(ushort MenuCommandValue);
  38.         void            DoIdle(long TimeSinceLastEvent);
  39.         void            EnableMenuItems(void);
  40.         Handle        GetTextCopy(void);
  41.         void            SetText(Handle TheNewText);
  42.         MyBoolean    BecomeKeyReceiver(void);
  43.         MyBoolean    RelinquishKeyReceivership(void);
  44.     };
  45.